Signing Certificate access was blocked a day before License expired.
Post
Replies
Boosts
Views
Activity
I wish Apple would test their code before presenting at a conference.
I added a name state variable for the TextField.
@State private var name: String = ""
...
.sheet(item: $donutToAdd) { _ in
TextField("Name", text: $name)
.padding(10)
.overlay(
RoundedRectangle(cornerRadius: 20)
.stroke(Color.black)
)
Button("Save") {
if let donutToAdd {
donutToAdd.name = name
donutList.donuts.append(donutToAdd )
self.donutToAdd = nil
self.name = ""
}
}
Button("Cancel") { self.donutToAdd = nil }
}
code-block
And DonutList needs to be a class (else you get a mutating member on immutable value).
@Observable
class DonutList {
var donuts: [Donut]
init(donuts: [Donut]) {
self.donuts = donuts
}
}
code-block
"Reset Development Environment" will delete ALL your Records and your Custom Zones.
Did you add an index to your RecordType using the console? "Add Basic Index" > make "recordName" QUERYABLE. The reset will delete your indexes
TRY adding a "scene.size = size" to line 25. SpriteKit doesn't know that the size of the frame changed.
Note: Every time you rotate, you're going to create a new Scene and loose everything in the scene (new Game).